package com.hui.platform.falseworkapi.service.business.user.service;

import com.hui.platform.falseworkapi.common.core.vo.PageData;
import com.hui.platform.falseworkapi.service.business.user.bo.TbAuthoritiesBO;
import com.hui.platform.falseworkapi.service.business.user.dto.TbAuthoritiesDTO;
import com.hui.platform.falseworkapi.service.business.user.entity.TbAuthorities;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 权限表 服务类
 *
 * @author hui
 * @since 2020-04-17
 */
public interface TbAuthoritiesService extends IService<TbAuthorities> {

    TbAuthoritiesBO readById(Long id);

    List<TbAuthoritiesBO> readByIds(List<Long> ids);

    List<TbAuthoritiesBO> readList(TbAuthoritiesDTO condition);

    PageData<TbAuthoritiesBO> readPage(Long pageNum, Long pageSize, TbAuthoritiesDTO condition);

    Long createOne(TbAuthoritiesDTO dto);

    Long updateOne(Long id, TbAuthoritiesDTO dto);

    Long deleteById(Long id);

    List<Long> deleteByIds(List<Long> ids);
}
